package com.buka.web;

import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

@RestController
public class ErrorController {

    @RestController
    public class FallbackController {
        @GetMapping("/fallback")
        public String fallback() {
            return "服务不可用！！！";
        }
    }

}
